package com.hmdp.utils;

/**
 * @author ChenPi
 * @since 2024/09/27 13:33
 */
public interface ILock {
    /**
     * 尝试获取锁
     *
     * @param timeSec
     * @return
     */
    boolean tryLock(Long timeSec);

    /**
     * 释放锁
     */
    void unlock();
}
